﻿@model CompanyManagementDLL.MetaData.UserMetaData

@{
    ViewBag.Title = "Add User";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div class="row">
    <div class="col-md-6">
        <div class="box box-primary">
            <div class="box-header">
                <h3 class="box-title">Add User</h3>
            </div>
            <form method="post">
                <div class="box-body">
                    <div style="color: red">
                        <b>@Html.ValidationSummary()</b>
                    </div>
                    <div class="form-group">
                        <label>User Name</label>
                        @Html.TextBoxFor(model => model.UserName, new { @class = "form-control", @placeholder = "Enter User Name" })
                    </div>
                    <div class="form-group">
                        <label>Password</label>
                        @Html.TextBoxFor(model => model.Password, new { @class = "form-control", @placeholder = "Enter Password",type="password" })
                    </div>
                    <div class="form-group">
                        <label>Confirm Password</label>
                        @Html.TextBoxFor(model => model.ConfirmPassword, new { @class = "form-control", @placeholder = "Enter ConfirmPassword",type="password" })
                    </div>
                    <div class="form-group">
                        <label>FullName</label>
                        @Html.TextBoxFor(model => model.FullName, new { @class = "form-control", @placeholder = "Enter FullName" })
                    </div>
                    <div class="form-group">
                        <label>Email Address</label>
                        @Html.TextBoxFor(model => model.EmailID, new { @class = "form-control", @placeholder = "Enter Email Address" ,type="email"})
                    </div>
                    <div class="form-group">
                        <label>PhoneNumber</label>
                        @Html.TextBoxFor(model => model.PhoneNumber, new { @class = "form-control", @placeholder = "Enter PhoneNumber" })
                    </div>
                    <div class="form-group">
                        <label>Address</label>
                        @Html.TextAreaFor(model => model.Address, new { @class = "form-control", @placeholder = "Enter Address" })
                    </div>
                    <div class="form-group">
                        <label>Role</label>
                        @{List<CompanyManagementDLL.MetaData.RoleMetaData> roleList = new CompanyManagementDLL.DLL.RoleDLL().GetRoleList();}
                        @Html.DropDownListFor(model => model.RoleID, new SelectList(roleList, "RoleId", "RoleName"),"--- Select Role ---", new { @class = "form-control",style="width:30%" })
                    </div>
                    <div class="checkbox">
                        <label class="">
                            <div class="icheckbox_minimal" style="position: relative;" aria-checked="false" aria-disabled="false">
                                @Html.CheckBoxFor(u => u.IsActive, new { style = "position: absolute; opacity: 0;" })
                                <ins class="iCheck-helper" style="position: absolute; top: 0%; left: 0%; display: block; width: 100%; height: 100%; margin: 0px; padding: 0px; background: none repeat scroll 0% 0% rgb(255, 255, 255); border: 0px none; opacity: 0;"></ins>
                            </div>
                            Is Active
                       
                        </label>
                    </div>
                </div>
                <div class="box-footer">
                    <button class="btn btn-primary" type="submit">Submit</button>
                    <a class="btn btn-danger" href="@Url.Action("Index", "User")"><i class="fa fa-arrow-left"></i>Cancel</a>
                </div>
            </form>
        </div>
    </div>
</div>

<script>
    $("#pagetitle").html("User");
</script>